package com.helen.adapter;

import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.helen.entity.TeamEntity;
import com.helen.shopping.R;
import com.helen.utils.MyLog;

import java.util.List;


/**
 * Created by yang on 2018/5/2.
 */

public class TeamListAdapter extends BaseQuickAdapter<TeamEntity, BaseViewHolder> {

    public TeamListAdapter( List<TeamEntity> data) {
        super(R.layout.item_team_list, data);

    }


    @Override
    protected void convert(final BaseViewHolder helper, final TeamEntity item) {
        try {
            TextView tvPhone = (TextView) helper.getView(R.id.tv_phone);
            tvPhone.setText(item.getPhone());

        } catch (Exception e) {
            MyLog.e("yang", "设置团队列表异常" + e.toString());
        }


    }


}
